package com.education.platform.api.vo.request;

import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import lombok.ToString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;
/**
* describe: 课程评论
* @author : tomato
* @date: 2020-06-16 11:49:53.324
**/
@ApiModel()
@Getter
@Setter
@ToString
public class CourseCommentUpdateVO {


    /**
     * 课程id
     */
    @ApiModelProperty("评论类型 1=课程  2=文章")
    @NotNull(message = "评论类型不能为空")
    private Integer topicType;

    /**
     * 课程id
     */
    @ApiModelProperty("评论对象id")
    @NotNull(message = "评论对象id不能为空")
	private Integer courseId;

    /**
     * 评论
     */
    @ApiModelProperty("评论")
    @NotNull(message = "评论内容不能为空")
    @Length(min = 1,max = 100,message = "评论内容最长100个字")
	private String comment;


}
